<%@ page language="java" %>

<%@ page import="com.scalar.chiptrack.commons.Constants,
                com.scalar.chiptrack.commons.SessionKeys,
                com.scalar.chiptrack.users.User,
                com.scalar.chiptrack.users.Functionality,
                com.scalar.chiptrack.operations.packingslip.FinalInventoryData,
				com.scalar.chiptrack.operations.packingslip.forms.PackingSlipForm,	
                com.scalar.chiptrack.utils.ConfigManager,
                com.scalar.chiptrack.utils.StringUtils"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>

<chiptrack:checkLogon sourcePage="/packingSlipMenu.do"/>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>
<% User user1 = (User)session.getAttribute (SessionKeys.USER_KEY); %>

<html:html locale="true">

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type='text/css' rel='stylesheet'>
<style type="text/css">
a { text-decoration : none}
@page {
  size: landscape;
	}
}
</style>

<SCRIPT language="JavaScript">

function packingSlipMenu() 
{
}

function sendMail ( customerShipingId, salesOrderId )
{
    newWindow = window.open ('<%=chipTracContext%>/sendMail.do?customerShippingId='+customerShipingId +'&salesOrderId='+salesOrderId,'sendMailPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=800,height=550,resizable=yes');
    newWindow.focus();
}

</SCRIPT>
</HEAD>
<BODY bgColor='#ffffff' leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<html:form name="packingSlipPrintForm" type="com.scalar.chiptrack.operations.packingslip.forms.PackingSlipForm" action="/packingSlip.do?action=confirmPackingSlip" scope="request">
<logic:equal name="packingSlipPrintForm" property="status" value="<%=Constants.CUSTOMER_SHIPPING_STATUS_CANCELLED%>">
<table border="0" width="100%" align="center" background="<%=chipTracContext%>/jsp/includes/images/cancelled_icon.gif"><tr><td>
</logic:equal>
<logic:notEqual name="packingSlipPrintForm" property="status" value="<%=Constants.CUSTOMER_SHIPPING_STATUS_CANCELLED%>">
<table border="0" width="100%" align="center"><tr><td>
</logic:notEqual>
	<%
		if ( !user1.isActionAllowed ( Functionality.PACKING_SLIP, User.USER_ACTION_MODIFY ) )
		{
	%>
	<logic:equal name="showNoModifyMessage" value="TRUE">
		<tr><td colspan='5'><font class='NArialS'><font color='blue'><b><%=Constants.NO_MODIFY_RIGHTS %></b></font><TD><TR>
	</logic:equal>
    <% } %>
    <logic:equal name="showMainMenu" value="TRUE">
        <tr>
            <td colspan=4 align=right>
            <font class='NArialL'>[<a href="<%=chipTracContext%>/searchPackingSlip.do" onMouseOver="window.status='Click here to go to Packingslip Main Menu';return true" onMouseOut="window.status='';return true">Packingslip Main Menu</a>]&nbsp;&nbsp;</font>
            </td>
        </tr>
    </logic:equal>
    <tr>
        <td colspan="4" align="right">
            <table border=0>
                <tr>
                    <td><a href="javascript:window.print();" title='Click here to print the Packing Slip'><img src="<%=chipTracContext%>/jsp/includes/images/printer_icon_small.gif" width='80' height="50" border="0" alt=""></a></td>
                    <td>&nbsp;&nbsp;</td>
                    <td><a href="javascript:sendMail(<bean:write name='packingSlipPrintForm' property='customerShippingId'/>, <bean:write name='packingSlipPrintForm' property='salesOrderId'/>);" title='Click here to send mail'><img src="<%=chipTracContext%>/jsp/includes/images/email1.gif" border="0" alt=""></a></td>
                    <td>&nbsp;&nbsp;</td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
		<td width="30%" align="left">
			<img src="<%=chipTracContext%>/jsp/includes/images/scalar_logo.jpg" height="84" width="200" border=0>
		</td>
        <td width="35%"  align="center" class="NArialL">
			<font class='NArialW'>Packing Slip</font><br>			
		</td>
        <td width="20%" class="NArialL" align="right" colspan="2">
            <table>
                <tr>
                    <td align="left" class="NArialL">
                        <bean:write name="packingSlipPrintForm" property="clientInfo.clientName" />
                        <bean:write name="packingSlipPrintForm" property="clientAddrWithOutEmailObjFormatted" filter="false"/>
                    </td>
                </tr>
            </table>
            <%--<table width='50'align=center background='<%=chipTracContext%>/jsp/includes/images/printer_icon_small.gif'>
				<tr>
					<td>
						<a href="javascript:window.print();" title='Click here to print the Packing Slip'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
				        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
				        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
					</td>
				</tr>
			</table>--%>
        </td>
        <%--<td width="15%">
			<table border ="0"  background='<%=chipTracContext%>/jsp/includes/images/email1.gif'>
				<tr>
					<td>
						<a href="javascript:sendMail(<bean:write name='packingSlipPrintForm' property='customerShippingId'/>, <bean:write name='packingSlipPrintForm' property='salesOrderId'/>);" title='Click here to send mail'>&nbsp;&nbsp;&nbsp;&nbsp;</a>
					</td>
				</tr>
			</table>
        </td>--%>
	</tr>

    <tr>
		<td colspan='4'>
			<table width="100%" border=0 cellspacing=0 cellpadding=0>
				<tr>
			        <td bgcolor='#FFFFEE' class="NArialRS" align="left" width="40%" height="100%">
						<table width="100%" height="100%" class="NArialRS" border='1' bordercolor='#000000' cellspacing='0'>
							<tr height=30>
								<td class="NArialR" bgcolor="#DEE1E2" >Ship From:</td>
							</tr>
							<tr>
								<td class="NArialRS" valign="top">
                                  <%--<logic:notEmpty  name="packingSlipPrintForm" property="vendorName" >
									    <bean:write name="packingSlipPrintForm" property="vendorName" />
                                  </logic:notEmpty>--%>
                                  <bean:write name="packingSlipPrintForm" property="clientName" />                                  
                                  <bean:write name="packingSlipPrintForm" property="shippingVendorObjectFormatted" filter="false"/>
                                </td>
							</tr>
						</table>
					</td>
					<td width="20%"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td>
					<td bgcolor='#FFFFEE' class="NArialRS" align ="right"  width="40%" height="100%">
						<table width="100%" height="100%" class="NArialRS" border='1' bordercolor='#000000' cellspacing='0' >
							<tr height=30><td class="NArialR" bgcolor="#DEE1E2" >Ship To:</td></tr>
							<tr>
								<td class="NArialRS" valign="top">
                                    <%--<logic:notEmpty name="packingSlipPrintForm" property="shippingAddressObject">
                                        <logic:notEqual name="packingSlipPrintForm" property="shippingAddressObject.contactPerson" value='<bean:write name="packingSlipPrintForm" property="customerName"/>'>
                                             <bean:write name="packingSlipPrintForm" property="customerName"/>
                                        </logic:notEqual>
                                    </logic:notEmpty>
                                    <logic:empty name="packingSlipPrintForm" property="shippingAddressObject">
                                         <bean:write name="packingSlipPrintForm" property="customerName"/>
                                    </logic:empty>--%>

									<bean:write name="packingSlipPrintForm" property="shippingAddressObjectFormatted" filter="false"/>
								</td>
							</tr>
			            </table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
    
        <html:hidden name="packingSlipPrintForm" property="label"/>
        <html:hidden name="packingSlipPrintForm" property="customerShippingId"/>
        <html:hidden name="packingSlipPrintForm" property="noOfBoxes"/>
		<logic:iterate name="packingSlipPrintForm" property="tracking" id="track">
			<input type="hidden" name="tracking" value='<bean:write name="track"/>'/>
		</logic:iterate>
        <html:hidden name="packingSlipPrintForm" property="shippedVia"/>
        <html:hidden name="packingSlipPrintForm" property="shipDate"/>
        <html:hidden name="packingSlipPrintForm" property="invNo"/>
        <html:hidden name="packingSlipPrintForm" property="contactPerson"/>
        <html:hidden name="packingSlipPrintForm" property="weight"/>
    


    <tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr><td colspan=4><font class="NArialR"><strong><u>Shipping Instructions:</u></strong></font></td></tr>
    <tr><td colspan=4 bgcolor='#DEE1E2' width="100%"><font class="NArialRS"><bean:write name="packingSlipPrintForm"  property="shippingInstructions" /></font></td></tr>

    <tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr>
		<td colspan=4 width="100%">
			<table border='1' width="100%" class='NArialRS' bordercolor='#000000' cellspacing='0'>
	            <tr>
                    <td width='12%' align='center' bgcolor='#DEE1E2' class='NArialR'>Customer PO#</td>
                    <logic:equal name="packingSlipPrintForm" property="isSample" value="true">
                    <td width='12%' align='center' bgcolor='#DEE1E2' class='NArialR'>Sample Sales Order#</td>
                    </logic:equal>
                    <logic:notEqual name="packingSlipPrintForm" property="isSample" value="true">
                    <td width='12%' align='center' bgcolor='#DEE1E2' class='NArialR'>Sales Order#</td>
                    </logic:notEqual>
                    <td width='12%' align='center' bgcolor='#DEE1E2' class='NArialR'>PackingSlip Label</td>
                    <td width='12%' align='center' bgcolor='#DEE1E2' class='NArialR'>Ship Date</td>
                    <td width='12%' align='center' bgcolor='#DEE1E2' class='NArialR'>Shipped Via</td>
					<td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Way Bill</td>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Del. Terms</td>
                    <td width='10%'  align='center' bgcolor='#DEE1E2' class='NArialR'># Cartons</td>
                    <% if( ConfigManager.getShowPackageDimensionInPackingSlip() ) { %>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Net Weight<br>(<bean:write name="packingSlipPrintForm"  property="weightType"/>)</td>
                    <% } else { %>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Weight<br>(<bean:write name="packingSlipPrintForm"  property="weightType"/>)</td>
                    <% } %>
                </tr>
                <tr>
	                <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="customerPO" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="salesOrderNumber" />&nbsp;</td>
					<td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="label" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="shipDate" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="shippedVia" />&nbsp;</td>
					<td align='center' bgcolor='#FFFFEE'>
						<table class='NArialRS'>
							<logic:iterate name="packingSlipPrintForm" property="tracking" id="track">
								<tr><td><bean:write name="track"/></td></tr>
							</logic:iterate>
						</table>
					</td>
                    <td align='center' bgcolor='#FFFFEE'>&nbsp;
						<bean:write name="packingSlipPrintForm" property="termsForHtmlView" />
					</td>
                    <td align='center'  bgcolor='#FFFFEE'>&nbsp;
						<bean:write name="packingSlipPrintForm" property="noOfBoxesForHtmlView" />
					</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="weight" />&nbsp;</td>
                </tr>
            </table>
        </td>
	</tr>
    <tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <%--<tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr><td colspan=4><font class="NArialR"><strong><u>Shipping Instructions:</u></strong></font></td></tr>
    <tr><td colspan=4 bgcolor='#DEE1E2' width="100%"><font class="NArialRS"><bean:write name="packingSlipPrintForm"  property="shippingInstructions" /></font></td></tr>--%>
    <bean:define name="packingSlipPrintForm" id="packingSlipPrintForm"/>
    <% if( ConfigManager.getShowPackageDimensionInPackingSlip() ) { %>
    <tr>
        <td colspan=4>
            <table border='1' width="100%" class='NArialRS' bordercolor='#000000' cellspacing='0'>
                <tr>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Country of Origin(Fab)</td>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Country of Origin(Assy)</td>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>MAWB No</td>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>HAWB No</td>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Flight-1 No</td>
					<td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Flight-2 No</td>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>ETD</td>
                    <td width='10%'  align='center' bgcolor='#DEE1E2' class='NArialR'>ETA</td>
                    <td width="10%" align='center' bgcolor='#DEE1E2' class='NArialR'>Package Dimension<br>(<bean:write name="packingSlipPrintForm"  property="uomPkgDimension"/>)</td>
                    <td width="10%" align='center' bgcolor='#DEE1E2' class='NArialR'>Gross Weight<br>(<bean:write name="packingSlipPrintForm"  property="weightType"/>)</td>
                </tr>
                <tr>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="countryOfFabOrigin" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="countryOfAssyOrigin" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="mawb" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="hawb" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="flightNumberOne" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="flightNumberTwo" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="etd" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="eta" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="packageDimension" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipPrintForm" property="grossWeight" />&nbsp;</td>
                </tr>
            </table>
        </td>
    </tr>
    <% } %>
    <tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr><td colspan=4><font class="NArialR"><strong><u>Comments: </u></strong></font></td></tr>
    <tr><td colspan=4 bgcolor='#DEE1E2' width="100%"><font class="NArialRS">
    <%	String strComments = ((com.scalar.chiptrack.operations.packingslip.forms.PackingSlipForm)packingSlipPrintForm).getComments();
        if( strComments != null )
        {
            strComments = strComments.replaceFirst( "\n", "" );
            strComments = strComments.replaceAll( "\n", "<BR>" );
            out.println(strComments);
        }
    %>
    </font></td></tr>
    <tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr>
		<td colspan=4 width="100%">
			<table border="1" width="100%" align='center' bordercolor='#000000' cellspacing='0' cellpadding='0'>
				<tr>
					<td width="5%"  nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">PO Line<br>Item</font></td>
                    <% if (ConfigManager.getBooleanProperty(ConfigManager.SHOW_MFG_PARTNO_PACKINGSLIP ) ) { %>
                    <td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR"><bean:message key="label.mfgPartNumber"/></font></td>
                    <% }  %>
                    <% if (ConfigManager.getBooleanProperty(ConfigManager.SHOW_MRKT_PARTNO_PACKINGSLIP ) ) { %>
                    <td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR"><bean:message key="label.mktgPartNumber"/></font></td>
                    <% } %>
                    <logic:present name="recipientType">
                        <logic:equal name="recipientType" value="vendor"><td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">Shipped <bean:message key="label.mfgPartNumber"/></font></td></logic:equal>
                    </logic:present>
                    <td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR"><bean:message key="label.customerPartNumber"/></font></td>
                    <td width="25%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">Description</font></td>
                    <td width="5%"  nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">UOM</font></td>
                    <td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">Customer Request Date</font></td>
                    <td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">Schedule Date</font></td>
                    <td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">Req Qty</font></td>
                    <td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">Qty <br>Shipped</font></td>
                    <td width="15%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">[Lot #] [Date Code] [Qty]</font></td>
                </tr>

				<nested:iterate id="csLineItems" name="packingSlipPrintForm" property="lineitems" type="com.scalar.chiptrack.operations.packingslip.CustomerShippingLineItems" indexId="lineItemIdx" scope="request">
				<nested:greaterThan property="qtyPulled" value="0" >
                <tr>                    
					<td width="5%" align="center" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="cool_PO_Line_Item_No"/>&nbsp;</font>
					</td>
                    <% if (ConfigManager.getBooleanProperty(ConfigManager.SHOW_MFG_PARTNO_PACKINGSLIP ) ) { %>
                    <td width="10%" nowrap align="left" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="part_Number"/>&nbsp;</font>
					</td>
                    <% }  %>
                    <% if (ConfigManager.getBooleanProperty(ConfigManager.SHOW_MRKT_PARTNO_PACKINGSLIP ) ) { %>
                    <td width="10%" nowrap align="left" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="mkt_Part_Number"/>&nbsp;</font>
					</td>
                    <% } %>
                    <logic:present name="recipientType">
                        <logic:equal name="recipientType" value="vendor">
                            <td width="10%" nowrap align="left" bgcolor="#FFFFEE"  class="NArialRS">
                                <%--<nested:write property="substitutablePartNumbersAsString" filter="false"/>&nbsp;--%>
                                <table border='0' cellspacing='0' cellpadding='0' width='100%' bgcolor='#FFFFEE' class='viewTable'>
                                    <logic:iterate id="shippedPartNo1" name="csLineItems" property="shipped_Part_Number" indexId="index">
                                        <tr><td align='left' valign='middle' bgcolor='#FFFFEE' class='NArialRS'><bean:write name="shippedPartNo1" /></td></tr>
                                    </logic:iterate>
                                </table>
                            </td>
                        </logic:equal>
                    </logic:present>
                    <td width="10%" nowrap align="left" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="customer_Part_Number"/>&nbsp;</font>
					</td>
                    <td width="25%" align="left" bgcolor="#FFFFEE">
						<table border="0" width="90" bgcolor="#FFFFEE" class="viewTable">
							<tr>
								<td align="left" bgcolor="#FFFFEE">
									<font class="NArialRS"><nested:write property="cool_Description"/>&nbsp;</font>
								</td>
							</tr>
						</table>
                    </td>
                    <td width="5%" nowrap align="left" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="units"/>&nbsp;</font>
					</td>
                    <td width="10%" align="center" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="cool_Requested_Date"/>&nbsp;</font>
					</td>
                    <td width="10%" align="center" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:notEqual property="cool_Revised_Date" value="">
							<nested:write property="cool_Revised_Date"/>&nbsp;</font>
						</nested:notEqual>
						<nested:equal property="cool_Revised_Date" value="">
							<nested:write property="cool_Schedule_Date"/>&nbsp;</font>
						</nested:equal>
					</td>
                    <td width="10%" align="right" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="cool_Qty"/>&nbsp;</font>
					</td>
                    <td width="10%" align="right" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="qtyPulled"/>&nbsp;</font>
					</td>
					<td width="15%" align="left" bgcolor="#FFFFEE" nowrap><font class="NArialRS">
	                    <table border='1' bordercolor='gray' cellspacing='0'  cellpadding='0' width='100%' >
							<logic:present name="packingSlipPrintForm" property="finalInventoryDataMap">
							<logic:iterate name="packingSlipPrintForm" property="finalInventoryDataMap" id="finalInventoryData">
							<bean:define name="finalInventoryData" property="key" id="tempLineitemId" type="java.lang.String"/>
							<nested:equal property="customerShippingLineItemId" value="<%=tempLineitemId%>">
							<logic:iterate name="finalInventoryData" property="value" type="com.scalar.chiptrack.operations.packingslip.FinalInventoryData" id="lotData">
							<logic:greaterThan name="lotData" property="quantityPull" value="0">
							<tr>
									<td width="60%" nowrap class='NArialRS'>
									<%
										if( ConfigManager.getShowFabLotNumberInPackingSlip() )
										{
									%>
										<bean:write name="lotData" property="fabLotNumber"/>
									<%
										}
										else
										{
									%>
										<bean:write name="lotData" property="lotNumber"/>
									<%
										}	
									%>
									&nbsp;</td>
                                <td width="30%" nowrap class='NArialRS'><bean:write name="lotData" property="dateCode"/>&nbsp;</td>
                                <td width="10%" nowrap class='NArialRS'><bean:write name="lotData" property="quantityPull"/>&nbsp;</td>
							</tr>
							</logic:greaterThan>
							</logic:iterate>
							</nested:equal>
							</logic:iterate>
							</logic:present>
							<logic:notPresent name="packingSlipPrintForm" property="finalInventoryDataMap">
							<tr>	
								<td nowrap><font class='NArialRS'> 
								</font></td>
                                <td nowrap><font class='NArialRS'>
								</font></td>
							</tr>
							</logic:notPresent>
						</table>
					</td>
                </tr>
				</nested:greaterThan>
				</nested:iterate>
			</table>
		</td>
	</tr>
	<tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
	<tr>
		<td colspan=4>
			<table border="0" width="100%" align='center' bordercolor='#FFFFFF' cellspacing='2' cellpadding='2'>
				<tr><td align="center"><font class='NArialView'>CERTIFICATE OF COMPLIANCE</font></td></tr>
				<tr><td><font class='NArialRS'>THIS PRODUCT SHIPPED HERE WITH HAVE BEEN INSPECTED AND COMPLY WITH THE REQUIREMENTS OF YOUR PURCHASE ORDER TO THE EXTENT THAT SUCH REQUIREMENT HAVE BEEN ACCEPTED AND ACKNOWLEDGED BY 
                <logic:notEmpty  name="packingSlipPrintForm" property="clientInfo.clientName" >
					<bean:write name="packingSlipPrintForm" property="clientInfo.clientName" />
				</logic:notEmpty>

				SUBSTANTIATING INSPECTION AND TEST ON THAT FILE.</font>
                    <br><br>
                    <font class='NArialRS'>WE CERTIFY THAT INSPECTION EVIDENCE, INCLUDING TEST DATA,NECESSARY TO SUBSTANTIATE THIS CERTIFICATION IS AVAILABLE FROM OUR FILES.</font>
                </td></tr>
				<tr><td align="center"><font class='NArialRS'><B>THANK YOU FOR YOUR BUSINESS!</B></font></td></tr>
			</table>
		</td>
	</tr>
    <tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr>
        <td colspan="4" width="100%">
            <table border="0" width="100%">
                <tr>
                    <td width="30%" class='NArialR'>Packed By:</td>
                    <td width="20%" class='NArialR'>
                        <font class='signatureWithoutUnderLine'><bean:message key="label.signature"/></font>
                        <br>__________________________________________
                        <br>Name/Signature
                    </td>
                    <td>&nbsp;</td>
                </tr>
                <tr><td><td colspan=3><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=5></td></tr>
                <tr>
                    <td class='NArialR'>Checked By: </td>
                    <td class='NArialR'>
                        <font class='signatureWithoutUnderLine'><bean:message key="label.signature"/></font>
                        <br>__________________________________________ 
                        <br>Name/Signature
                    <td>&nbsp;</td>
                </tr>
                <%--<tr>
                    <td class='NArialR'>&nbsp;</td>
                    <td class='NArialR'>__________________________________________ <br>Name/Signature</td>
                    <td>&nbsp;</td>
                </tr>--%>
            </table>
        </td>
    </tr>
    <tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=70></td></tr>
</table>
</html:form>
</body>
</html:html>